﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using Companion.Data;

namespace Companion
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Viewer : Window
    {
        public Viewer()
        {
            InitializeComponent();
            TestDataBinding();
        }

        private void TestDataBinding()
        {
            Files fileCollection
                = new Files
                {
                    new File{Name="Game.exe", ModificationDate=DateTime.Now, Size=2090},
                    new File{Name="icon.ico", ModificationDate=DateTime.Now, Size=100},
                    new File{Name="Music.mp3", ModificationDate=DateTime.Now, Size=5000},
                };
            FileViewer.DataContext = fileCollection;
        }
    }
}
